{extend name="public:base" /}

{block name="content"}
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox ">
                <div class="ibox-title">
                    <div class="ibox-tools">
                        <a class="collapse-link">
                            <i class="fa fa-chevron-up"></i>
                        </a>
                    </div>
                </div>

                <div class="ibox-content">
                    <div class="row search-form">
                        <div class="col-sm-2 m-b-sm">
                            <div class="input-group">
                                <select name="status" class="form-control form-control-lg">
                                    <option value="">请选择申请状态</option>
                                    <option value="0" {:input['status'] == 0 && input['status'] !='' ?  'selected' : ''}>提现申请中</option>
                                    <option value="1" {:input('status') == 1 ? 'selected' : ''}>提现成功</option>
                                    <option value="2" {:input('status') == 2 ? 'selected' : ''}>提现失败</option>
                                </select>
                            </div>
                        </div>
                        <div class="col-sm-2 m-b-sm">
                            <div class="input-group">
                                <input placeholder="请输入会员昵称" name="username" value="{:input('username')}" type="text" class="form-control form-control-lg">
                            </div>
                        </div>
                        <div class="col-sm-2 m-b-sm">
                            <div class="input-group">
                                <button type="button" class="btn btn-primary btn-lg screen-btn">搜索</button>
                            </div>
                        </div>
                    </div>
                    <div class="table-responsive">
                        <table class="table table-striped">
                            <thead>
                            <tr>
                                <th>ID</th>
                                <th>用户昵称</th>
                                <th>提现金额</th>
                                <th>提现手续费比例</th>
                                <th>提现服务费金额</th>
                                <th>实际到账金额</th>
                                <th>打款类型</th>
                                <th>真实姓名</th>
                                <th>银行名称</th>
                                <th>银行卡号</th>
                                <th>开户行</th>
                                <th>状态</th>
                                <th>创建时间</th>
                                <th>修改时间</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            {volist name="list" id="vo"}
                            <tr>
                                <td>{$vo.id}</td>
                                <td>{$vo.username}</td>
                                <td>{$vo.price}</td>
                                <td>{$vo.rate}</td>
                                <td>{$vo.service_price}</td>
                                <td>{$vo.real_price}</td>
                                <td>{$vo.type_txt}</td>
                                <td>{$vo.real_name}</td>
                                <td>{$vo.bank_name}</td>
                                <td>{$vo.bank_num}</td>
                                <td>{$vo.bank_deposit}</td>
                                <td>{$vo.status_txt}</td>
                                <td>{:timeFormat($vo.create_time)}</td>
                                <td>{:timeFormat($vo.update_time)}</td>
                                <td class="project-actions">
                                    {if condition="$vo['type'] == 2 && $vo['status'] == 0"}
                                    <a href="{:url('doWithdrawal', ['id' => $vo.id,'status'=>1])}" class="btn btn-white btn-sm ajax-operate" data-msg="确定通过吗？">
                                        <i class="fa fa-edit"></i> 审核通过
                                    </a>
                                    <a href="{:url('doWithdrawal', ['id' => $vo.id,'status'=>2])}" class="btn btn-white btn-sm ajax-operate" data-msg="确定失败吗？">
                                        <i class="fa fa-edit"></i> 审核失败
                                    </a>
                                    {/if}
                                </td>
                            </tr>
                            {/volist}
                            </tbody>
                        </table>
                        {if !empty($list->items())}{$list->render()}{/if}
                    </div>

                </div>
            </div>
        </div>

    </div>
</div>

{/block}
